import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [
  {
    path: '',
    data: {
      title: '用户',
      status: false
    },
    children: [
      {
        path: 'user-list',
        data: {
          title: '用户列表',
          status: true
        },
        loadChildren: './user-list/user-list.module#UserListModule'
      }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class DemoRoutingModule { }
